﻿#include "mainwindow.h"
#include <QApplication>




int main(int argc, char *argv[])
{
	QApplication a(argc, argv);


	cout << sizeof(classData)<<"..";


	{

		QTextCodec::setCodecForLocale(QTextCodec::codecForName("gb2312"));

		setCenter::load();

		/*周数计算*/

		QSettings set("kebiao", "set");
		set.value("year");
		set.value("mon");
		set.value("day");

		QDate d_bef(set.value("year").toInt(), set.value("mon").toInt(), set.value("day").toInt());

		int days = d_bef.daysTo(QDate::currentDate()) + set.value("week").toInt() - 1;

		if (days / 7)
		{
			setCenter::saveCurrentDate();
			setCenter::current_week += days / 7;
			if (setCenter::current_week >= 25)
			{
				setCenter::current_week = 25;
			}
		}

		setCenter::save();

	}

	/*end of*/
	MainWindow w;
	// w.show();



	return a.exec();
}


